from django.contrib import admin
from .models import UserInfo
from .models import NewsInfo
from .models import TypeInfo

# Register your models here.
class UserAdmin(admin.ModelAdmin):
    list_display = ("UserName","UserPassword","UserPhone","UserEmail","UserSex","UserAge","UserLevel")

class NewsAdmin(admin.ModelAdmin):
    list_display = ("NewsTitle","NewsDigest","NewsContent","NewsAuthor","NewsUserID","NewsUpdateTime","NewsTypeID")

class TypeAdmin(admin.ModelAdmin):
    list_display = ("TypeName", )

admin.site.register(UserInfo,UserAdmin)
admin.site.register(NewsInfo,NewsAdmin)
admin.site.register(TypeInfo,TypeAdmin)